package com.ktjy.actual.actual02;

public class TestValidte {
    public static void main(String[] args) {
        ValidatorService target = (ValidatorService)
                ValidationProxy.newInstance(new ValidatorServiceImpl());
        try{
            target.validateParmeter(5.5);
//            target.validateParmeter(0.5);
            target.validateParmeter(10.5);
            target.validateParmeter(null);
        }catch (ValidationException a){
            System.out.println(a.getMessage());
        }
    }
}
